
using Microsoft.Extensions.DependencyInjection;
using Platform.Core.Config;
using Platform.Hardware.Camera.Base;

namespace Platform.Hardware.Camera.Emulation
{
    public static class CameraEmulationModule
    {
        public static void InitCameraEmulationModule(this ServiceCollection services)
        {
            if (ConfigManager.NoHardwareMode)
            {
                services.AddKeyedSingleton<ICamera, CameraEmulation>(CameraType.Left.ToString());
                services.AddKeyedSingleton<ICamera, CameraEmulation>(CameraType.Right.ToString());
            }
        }
    }

}
